package com.qujia.station.service.impl;

import com.qujia.station.domain.Grade;
import com.qujia.station.domain.ShiftClass;
import com.qujia.station.mapper.GradeMapper;
import com.qujia.station.mapper.ShiftMaskMapper;
import com.qujia.station.service.IGradeService;
import com.qujia.station.service.IShiftMaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 油站信息Service业务层处理
 * 
 * @author qujia
 * @date 2020-12-08
 */
@Service
public class ShiftMaskServiceImpl implements IShiftMaskService
{
    @Autowired
    private ShiftMaskMapper shiftMaskMapper;

    /**
     * 查询班次信息
     *
     * @param shiftClassId 班次信息ID
     * @return 班次信息
     */
    public ShiftClass selectShiftClassById(Long shiftClassId){
        return shiftMaskMapper.selectShiftClassById(shiftClassId);
    }

    /**
     * 查询班次信息
     *
     * @param shiftClass 等级信息
     * @return 班次信息集合
     */
    public List<ShiftClass> selectShiftClassList(ShiftClass shiftClass){
        return shiftMaskMapper.selectShiftClassList(shiftClass);
    }

    /**
     * 新增班次信息
     *
     * @param shiftClass 班次信息
     * @return 结果
     */
    public int insertShiftClass(ShiftClass shiftClass){
        return  shiftMaskMapper.insertShiftClass(shiftClass);
    }

    /**
     * 修改班次信息
     *
     * @param shiftClass 班次信息
     * @return 结果
     */
    public int updateShiftClass(ShiftClass shiftClass){
        return shiftMaskMapper.updateShiftClass(shiftClass);
    }

    /**
     * 删除班次信息
     *
     * @param shiftClassId 班次信息ID
     * @return 结果
     */
    public int deleteShiftClassById(Long shiftClassId){
        return shiftMaskMapper.deleteShiftClassById(shiftClassId);
    }

    /**
     * 批量删除班次信息
     *
     * @param shiftClassIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteShiftClassByIds(Long[] shiftClassIds){
        return shiftMaskMapper.deleteShiftClassByIds(shiftClassIds);
    }


}
